package com.shse.login.dao;

import com.shse.login.meta.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Created by shse on 3/13/2016.
 */
@Repository
public interface UserDao {

    @Select("select * from User where userName=#{userName} and userPassword=#{userPassword}")
    public User getUser(@Param("userName") String userName, @Param("userPassword") String userPassword);

    @Select("select * from User where userId=#{userId}")
    public User getUserById(@Param("userId") Integer userId);
}
